package com.lemon.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 盘点信息记录表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StocktakingInfo {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 盘点仓库ID
     */
    @TableField(value = "target_warehouse_id")
    private Integer targetWarehouseId;

    @TableField(exist = false)
    private String targetWarehouseName;

    /**
     * 盘点库区ID
     */
    @TableField(value = "target_warehouse_area_id")
    private Integer targetWarehouseAreaId;

    @TableField(exist = false)
    private String targetWarehouseAreaName;

    /**
     * 盘点库位ID
     */
    @TableField(value = "target_warehouse_area_loca_id")
    private Integer targetWarehouseAreaLocaId;

    @TableField(exist = false)
    private String targetWarehouseLocaName;

    /**
     * 规格ID
     */
    @TableField(value = "sku_id")
    private Long skuId;

    /**
     * 商品名称
     */
    @TableField(value = "title")
    private String title;

    /**
     * 账面数量
     */
    @TableField(value = "book_count")
    private Integer bookCount;

    /**
     * 盘点数量
     */
    @TableField(value = "correct_count")
    private Integer correctCount;

    /**
     * 差异数量
     */
    @TableField(value = "discrepancy_count")
    private Integer discrepancyCount;

    /**
     * 类型(1 滚动盘点、2 定时盘点)
     */
    @TableField(value = "category")
    private Integer category;

    /**
     * 状态(1未确认，2 已确认，3已调整)
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 操作员工ID
     */
    @TableField(value = "emp_id")
    private Integer empId;

    /**
     * 定时任务ID
     */
    @TableField(value = "stocktaking_task_id")
    private Long stocktakingTaskId;

    /**
     * SaaS标识
     */
    @TableField(value = "saas_id")
    private String saasId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 创建人账号
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 修改人账号
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 是否删除  1 未删除  2 已删除
     */
    @TableField(value = "is_del")
    private Integer isDel;
}